package com.amazon.shop.bean.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 创建时间：14:06 2021/2/3
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
@Data
public class PriductForm extends BaseDTO {

    @NotNull(message="currentNum 不能为空",groups = {BaseGroup.get.class})
    private Long currentNum;
    @NotNull(message="pageSize 不能为空",groups = {BaseGroup.get.class})
    private Long pageSize;

    private Long stime;
    private Long etime;

    @NotNull(message="id 不能为空",groups = {BaseGroup.update.class,BaseGroup.del.class})
    private Integer id;

    /**
     * 产品名
     */
    @NotEmpty(message="产品名pname 不能为空",groups = BaseGroup.add.class)
    private String pname;

    /**
     * 产品网站
     */
    @NotEmpty(message="产品网站purl 不能为空",groups = BaseGroup.add.class)
    private String purl;

    /**
     * 提示语
     */
    @NotEmpty(message="满意提示语 pmsg 不能为空",groups = BaseGroup.add.class)
    private String pmsg;
    @NotEmpty(message="不满意提示语 pnmsg 不能为空",groups = BaseGroup.add.class)
    private String pnmsg;

    /**
     * 店铺id
     */
    @NotNull(message="店铺storeid 不能为空",groups = BaseGroup.add.class)
    private Integer storeid;

    /**
     * 兑换码
     */
    @NotEmpty(message="幸运码rcode 不能为空",groups = BaseGroup.add.class)
    private String rcode;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 修改时间
     */
    private Date updatetime;

    /**
     * 0未删除 1删除
     */
    private Integer delflag;

}
